package com.woniuxy.run.user.service.impl;

import com.woniuxy.run.user.entity.Users;
import com.woniuxy.run.user.mapper.UsersMapper;
import com.woniuxy.run.user.service.UsersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.run.user.mapper.UsersMapper;
import com.woniuxy.run.user.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2021-03-23
 */
@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements UsersService {

    @Autowired
    private UsersMapper usersMapper;

    @Override
    public List<Users> all() {
        return usersMapper.all();
    }

    @Override
    public Boolean updateAvatar(String acc, String avatar) {
        return usersMapper.updateAvatar(acc, avatar)>0?true:false;
    }
}
